<?php

namespace Part07_ProxyPattern\Code3;

include_once 'GiveGift.php';

class Pursuit implements GiveGift
{
    private $pursuitName;

    public function __construct($pursuitName, $schoolGirl)
    {
        $this->pursuitName = $pursuitName;
        echo "[$pursuitName]想追求[$schoolGirl]\n";
    }

    public function giveDolls()
    {
        echo $this->pursuitName . '能送娃娃但不送' . "\n";
    }

    public function giveFlowers()
    {
        echo $this->pursuitName . '能送花但不送' . "\n";
    }

    public function giveChocolate()
    {
        echo $this->pursuitName . '能送巧克力但不送' . "\n";
    }
}